import glamorous from 'glamorous' import {fontFamily, subheading1} from 'material-definitions' import {timeout} from 'promise-land' import * as React from 'react' import {ReactChild} from 'react' import {column, row} from 'style-definitions' import {ProgressButton, Switch} from '../../../lib' import {Example} from '../../components/Example' import {State} from '../../components/State' export const attributes = { title: 'ProgressButton', } const ButtonExampleContainer = glamorous.div([ column({horizontal: 'center'}), { '& + &': { paddingLeft: 24, }, }, ]) const ButtonExample = ({ title, children, }: { title: string children: ReactChild }) => ( {children}

{title}

) export default () => (
timeout(1000)}>Load timeout(1000)}> Load timeout(1000)}> Load timeout(1000)} > Load timeout(1000)}> Load timeout(1000)} > Load
{(loading, setLoading) => (
Load
)}
)